# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-input-vmmouse
pkgver=13.2.0
pkgrel=1
pkgdesc="X.org VMware mouse input driver"
url="https://xorg.freedesktop.org/"
arch="x86 x86_64"
license="MIT"
subpackages="$pkgname-doc"
makedepends="libxkbfile-dev xorg-server-dev libxi-dev libxrandr-dev eudev-dev"
source="https://www.x.org/releases/individual/driver/$pkgname-$pkgver.tar.xz"

build() {
	export CFLAGS="${CFLAGS/-fno-plt}"
	export CXXFLAGS="${CXXFLAGS/-fno-plt}"
	export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
sha512sums="
26a01347a679db058abdc7cbd9a363bb4fccd1a727dc18e279d15b8a0dce71f67af5ff54df28b908391da8d2fc311d8c1813f26dcded4e9a2668db7b55ca5687  xf86-input-vmmouse-13.2.0.tar.xz
"
